package app.goods.info.services;

import java.util.List;
import java.util.concurrent.Callable;

import app.goods.info.services.domain.CataLogue;
import app.goods.info.services.domain.GoodsInfo;

public class GetGoodsFuture implements Callable<List<GoodsInfo>> {
	private CataLogue cataLogue;
	CentralizedProcurementGoodsServie centralizedProcurementGoodsServie = new CentralizedProcurementGoodsServie();

	public GetGoodsFuture(CataLogue cataLogue) {
		this.cataLogue = cataLogue;

	}

	@Override
	public List<GoodsInfo> call() throws Exception {
//		return centralizedProcurementGoodsServie.getCentralizedGoodsByCatalogueNo(cataLogue);
		return centralizedProcurementGoodsServie.getCentralizedGoodsByCatalogueNoWithShopNo(cataLogue);
	}
}
